package com.zt.ztyh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zt.ztyh.dto.BIndDto;
import com.zt.ztyh.entity.Bankcards;
import com.zt.ztyh.service.BankcardsService;
import com.zt.ztyh.mapper.BankcardsMapper;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 王利明
* @description 针对表【ztyh-bankcards】的数据库操作Service实现
* @createDate 2024-03-31 19:11:44
*/
@Service
public class BankcardsServiceImpl extends ServiceImpl<BankcardsMapper, Bankcards>
    implements BankcardsService{
    @Resource
    private BankcardsMapper bankcardsMapper;

    @Override
    public void add(BIndDto bIndDto) {
        bankcardsMapper.add(bIndDto);
    }

    @Override
    public List<Bankcards> findAll(String phone) {
        return bankcardsMapper.findAll(phone);
    }
}




